<template>
  <van-sticky>
    <van-nav-bar :title="titleway" left-arrow @click-left="onClickLeft">
      <div @click="hrefs('priceQs')" class="img" slot="right">
        <van-icon :name="iconqs" />
      </div>
    </van-nav-bar>
  </van-sticky>
</template>

<script>
import iconqs from "../../assets/img/price/iconqs.png";
export default {
  props: ["priceObj"],
  data() {
    return {
      iconqs,
      tardeNum: 0,
    };
  },
  computed: {
    titleway() {
      return this.$route.query.kname||this.$route.meta.title  ;
    }
  },
  methods: {
    hrefs(i) {
      this.$router.push({ path: i, query: this.priceObj });
    },
    onClickLeft() {
      this.$router.go(-1);
    }
  }
};
</script>

<style scoped lang="less">
.img {
  width: 0.8rem;
  height: 100%;
  padding: 0 0 0 20%;
}
</style>
